FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest
LABEL \
        maintainer="OpenAnolis KeenTune SIG" \
        org.opencontainers.image.title="keentune-brain" \
        org.opencontainers.image.version="2.2.0"

RUN yum install python36 python36-devel git gcc gcc-c++ make llvm-devel-10.0.1 -y

RUN git clone https://gitee.com/anolis/keentune_brain.git;cd keentune_brain;python3 setup.py install

RUN pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip3 install pynginxconfig pyudev requests numpy tornado hyperopt==0.2.5 scikit_learn xgboost pySOT llvmlite -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip3 install shap -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN rm -rf keentune_brain

